<?php

class Tag implements JsonSerializable
{
    private $id;
    private $tagName;
    private $avatar;

    /**
     * @param $id
     * @param $tagName
     * @param $avatar
     */
    public function __construct($id, $tagName, $avatar)
    {
        $this->id = $id;
        $this->tagName = $tagName;
        $this->avatar = $avatar;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id): void
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getTagName()
    {
        return $this->tagName;
    }

    /**
     * @param mixed $tagName
     */
    public function setTagName($tagName): void
    {
        $this->tagName = $tagName;
    }

    /**
     * @return mixed
     */
    public function getAvatar()
    {
        return $this->avatar;
    }

    /**
     * @param mixed $avatar
     */
    public function setAvatar($avatar): void
    {
        $this->avatar = $avatar;
    }


    /**
     * @param $id
     * @param $tagName
     * @param $avatar
     */

    public function jsonSerialize()
    {
        return [
            'id' => $this->id,
            'tagName' => $this->name,
            'avatar' => $this->tagName
        ];
    }
}